.modal-header(data-id=id, data-phase=phase)
  button.close(data-dismiss='modal') &times;
  h3= title
    small(style='margin-left:16px') endre #{NAMES[phase]}
.modal-body
  .row-fluid
    .span8
      h6.prelabel.pull-left(style="margin-top: 6px") Beskrivelse
      textarea.pull-right(style='width:475px; height: 110px', data-property='desc')= desc
    .span4
      input#hidden-risk-field(type='hidden', style='display:none', value=risk, data-property='risk')
      .btn-group.change-risk(data-toggle="buttons-radio").pull-right
        each foo in ['low','medium','high']
          if risk == foo
            button.btn.btn-small(class=RISK_BTN_CLASSES[foo], data-risk=foo).active= RISK_NAMES[foo]
          else
            button.btn.btn-small(class=RISK_BTN_CLASSES[foo], data-risk=foo)= RISK_NAMES[foo]
      h6.prelabel.pull-left(style="margin-top: 6px")= riskLabel
      br(style='clear:both')
      if showRiskMsg
        textarea.risk-reason.riskMsg(disabled='disabled', data-property='riskMsg', placeholder='Begrunnelse', style='margin-top:20px;width:273px;height:75px')= riskMsg
      //.alert.alert-info(style='margin-top: 20px')
      //  strong Sobah Pettersen: 
      //  | Dette  går jo skikkelig på skinner. Ikke noe stress i det hele tatt! =D
  .row-fluid(style='margin-top:32px')
    .span4
      h6.prelabel.pull-left(style="margin-top: 6px") Kunde
      input.pull-right(value=customer, placeholder='ingen', data-property='customer', data-property='customer')
    .span4
      h6.prelabel.pull-left(style="margin-top: 6px") Budsjett
      input.pull-right(value=budget, placeholder='uvisst', data-property='budget')
    .span4
      h6.prelabel.pull-left(style="margin-top: 6px") Opprettet av
      span.pull-right(style='margin-top:4px', data-id=creator.id)= creator.name
  .row-fluid(style='margin-top:16px')
    .span4
      h6.prelabel.pull-left(style="margin-top: 6px") Datert
      input.pull-right(value=dateCreated, data-old=dateCreated, placeholder='velg dato', data-type='date', data-property='dateCreated')
    .span4
      h6.prelabel.pull-left(style="margin-top: 6px") Start
      input.pull-right(value=dateStart, data-old=dateStart, placeholder='velg dato', data-type='date', data-property='dateStart')
    .span4
      h6.prelabel.pull-left(style="margin-top: 6px") Slutt
      input.pull-right(value=dateEnd, data-old=dateEnd, placeholder='velg dato', data-type='date', data-property='dateEnd')
  .row-fluid(style='margin-top:16px')
    .span4
      h6.prelabel.pull-left(style="margin-top: 6px") Leder
      input.pull-right(value=leader.name, data-id=leader.id, placeholder='ingen', data-type='user', data-property='leader')
    .span8
      h6.prelabel.pull-left(style="margin-top: 6px;margin-right:16px") Ressurser
      a.btn.btn-mini.add-resource-button.pull-left(style='margin-left:4px')
        i.icon-plus-sign
      each resource in resources
        .alert.alert-info.resource.pull-left(style='padding:2px; margin-left:3px', data-name=resource.name, data-id=resource.id)= resource.name
          a.closy.remove-resource-button(href='#') &times;
      //input.pull-left(value=resources, placeholder='skriv inn navn', data-type='names', style='width: 350px')
.modal-footer
  a.btn.btn-large.btn-danger.delete-button(href='#', title='<em>Slett</em> dette prosjektet').pull-left Slett
  if phase == 'proposal'
    a.btn.btn-large.btn-success.next-button(href='#', data-phase='task', title='Gjør om dette prosjektet til et <em>oppdrag</em>. Du vil da finne dette prosjektet under <em>Oppdrag</em> i menyen').pull-left Oppgrader til Oppdrag
  if phase == 'task'
    a.btn.btn-large.btn-success.next-button(href='#', data-phase='completed', title='Sett prosjektet som <em>fullført</em>, og send til <em>evaluaring</em>. Du vil da finne dette prosjektet under <em>Evaluering</em> i menyen').pull-left Til Evaluering
  a.btn.btn-large.cancel-button(href='#', title='Lukk vinduet <em>uten å lagre</em> endringer') Avbryt
  a.btn.btn-large.btn-primary.save-button(href='#', title='Lukk vindu og <em>lagre endringer</em>') Lagre